public class Punto{
	private int x; 
	private int y;
	private double d;
	public Punto(int x, int y){
		this.x = x;
		this.y = y;
	}

	public int getX(){
		return this.x;
	}

	public int getY(){
		return this.y;
	}

	public void setX(int x){
		this.x = x;
	}

	public void setY(int y){
		this.y = y;
	}

	public void calculateDistance(Punto p){

		d = Math.pow((this.getX() - p.getX()), 2) + Math.pow((this.getY() - p.getY()), 2);
		d = Math.sqrt(d);
	}
	public double getDistance(){
		return d;
	}
}
